<?php
use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;

LayerConfirmWidget::widget();
LayerIframeWidget::widget();

?>
<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height">
    <!--<?= $this->renderFile('@app/views/layouts/toolbar.php'); ?>-->
    <div class="docs-main zx-mg">
        <table id="tablesaw" class="tablesaw table yx-table1 yx-table5 table-striped with-check"
               data-tablesaw-mode="swipe" data-tablesaw-minimap>
            <thead>
            <tr class="yx-bgd2f6ec">
                <th><?= \Yii::t('zhtfrontend', 'ID'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '优惠券'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '会员'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '使用状态'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '领取时间'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '使用时间'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '券码'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '失效时间'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '操作'); ?></th>
            </tr>
            </thead>
            <?php if ($data): ?>
                <?php foreach ($data as $item): ?>
                    <tr data-id="<?= $item['id'] ?>">
                        <td><?= $item['id'] ?></td>
                        <td><?= $item['coupons_name'] ?></td>
                        <td><?= $item['customer_name'] ?></td>
                        <td><?= $item['use_status'] ?></td>
                        <td><?= $item['created_at'] ?></td>
                        <td><?= $item['use_time'] ?></td>
                        <td><?= $item['coupons_code'] ?></td>
                        <td><?= $item['invalid_time'] ?></td>
                        <td><?= $item['operate'] ?></td>
                    </tr>
                <?php endforeach; ?>
            <?php endif; ?>
        </table>
        <div style="text-align: right"><?= common\components\widgets\GoPager::widget(['pagination' => $pages]) ?></div>
    </div>
</div>

